package com.superiron.scaffold.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.superiron.scaffold.config.BaseEntity;
import lombok.Data;

import javax.persistence.*;

/**
 * @author ：yzg
 * @date ：Created in 2022/9/6 10:04
 * @description：
 * @modified By：
 * @version: $
 */
@Entity
@Table(name = "sa_user",
	uniqueConstraints = {@UniqueConstraint(columnNames = "mobile")}
)
@TableName("sa_user")
@Data
public class UserEntity extends BaseEntity {
	
	@Column(name = "user_name")
	private String userName;
	
	@Column(name = "mobile", length = 32)
	private String mobile;
	
	
	@Column(name = "password")
	private String password;
	
	@Column(name = "email")
	private String email;
	
	@Column(name = "nick")
	private String nick;
	
	@Column(name = "status")
	private Boolean status;
}
